package com.farmer.reliablemessage;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author tech-famer
 * @ClassName: ReliableMessageProperties
 * @Description: (这里用一句话描述这个类的作用)
 * @date 2021/11/1 12:50
 */
@Component
@ConfigurationProperties(
        prefix = "reliable.message"
)
public class ReliableMessageProperties {

    public ReliableMessageProperties(){}

    private boolean autocreatetable = false;

    private int removeLimit = 1;

    private long expireTime = 1000 * 30;

    public boolean isAutocreatetable() {
        return autocreatetable;
    }

    public void setAutocreatetable(boolean autocreatetable) {
        this.autocreatetable = autocreatetable;
    }

    public int getRemoveLimit() {
        return removeLimit;
    }

    public void setRemoveLimit(int removeLimit) {
        this.removeLimit = removeLimit;
    }

    public long getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(long expireTime) {
        this.expireTime = expireTime;
    }
}
